<template>
  <div>
    <input type="text" v-model="user.account" ><br>
    <input type="text" v-model="user.pwd" ><br>
    <button @click="login()">登录</button><br>

  </div>
</template>

<script>
export default {
  name: "login",
  data(){
    return{
      user:{
        account:'',
        pwd:''
      }
    }
  },
  methods:{
    login:function () {
      this.axios.post(this.baseUrl+"user/login",this.user)
      .then(res =>{
        console.log(res)
      })
    }
  }
}
</script>

<style scoped>

</style>










